print("Hello Word")
print("Hello","Word")
print("baixw","Hope","Drink","Milk Tea")

print(1+2)
print(10/5)

print("aaa" * 5)
# print("您账户积分为:"+ 500)
print("您账户积分为:" + str(500))

num = 4
if num % 2 == 0 :
    print(str(num) + "这是一个偶数")
else :
    print(str(num) + "这是一个奇数")

score = 59
if score < 60:
    print("您的考试成绩不及格") 
elif score < 90:
    print("您的考试成绩合格") 
else:
    print("您的考试成绩优秀")

#if条件嵌套
score = 100
if score >= 60:
    if score < 70: 
        print("您的考试成绩为合格")
    elif score < 90: 
        print("您的考试成绩为良好")
    else: 
        print("您的考试成绩为优秀")
else: 
    print("您的考试成绩不及格")

age = 22
if 18 < age < 60:
    print("你已经不是个孩子啦，该去工作啦")

seq = "hello"
for a in seq:
    print(a)

for i in range(5):
    print(i)

password = input("请设置您的密码")
#自动类型转换
#int类型转换为bool类型时，0为False，非0为True
#str类型转换为bool类型时，空字符串和None为False，不空为True

count = 0
if count:
    print("条件成立");
else:
    print("条件不成立")


result = None
if result:
    pass 
else:
    print("什么收获都没有")

#pass在Python的关键字，表示什么也不做

############循环
lap = 0
while lap <10:
    lap += 1
    print("我跑完了第" + str(lap + 1) + "圈")

#for循环
seq = "hello"
for s in seq:
    print(s)

#循环打印一连串的数据
for i in range(10):
    print(i)

for i in range(1, 10):
    for j in range(1, i + 1):
        print("%s*%s=%s" % (j, i, i * j), end=" ")
    print()









